package com.www.conversionspring.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.www.conversionspring.beans.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * </p>
 *
 * @author Zed.Yun
 * @Title: DictonaryMapper
 * @ProjectName conversion-spring
 * @date 2019/3/18 17:21
 */
@Mapper()
@Repository
public interface DictonaryMapper extends BaseMapper<Dictionary> {
    @Select("select val from dictionary where key_index=#{key} limit 1 ")
    String selectByKey(@Param("key") String key);
}
